<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ page import="hackathon1212.UserDAO" %>
<%@ page import="com.google.appengine.api.users.UserServiceFactory" %>
<%
if(UserDAO.get().allowed(request.getUserPrincipal())){
%>
<!DOCTYPE html>
<html>
<head>
  <TITLE>Hackathon1212</TITLE>
  <script src="http://platform.twitter.com/widgets.js"></script>
</head>
<body bgcolor="#0070C0">
<table cellpadding="0" cellspacing="0" >
<tr>
	<td><img id="Nav" alt="Image" src="API.png" style="border:none;" usemap="#map"></td>
	<td><a class="twitter-timeline"  width="100" height="750" href="https://twitter.com/Hackathon1212" data-widget-id="247989853675978753">Tweets by @Hackathon1212</a></td>
</tr>	
</table>
<map id="_map" name="map">

<area shape="rect" coords="20,220,420,295" href="corp.jsp"/>
<area shape="rect" coords="20,310,420,385" href="ar.jsp"/>
<area shape="rect" coords="20,400,420,480" href="merchant.jsp"/>
<area shape="rect" coords="20,500,420,575" href="https://dev.twitter.com/"/>
<area shape="rect" coords="20,590,420,670" href="https://developers.google.com/maps/"/>
<area shape="rect" coords="20,690,420,765" href="https://developer.foursquare.com/"/>

<area shape="rect" coords="440,220,850,295" href="payment.jsp"/>
<area shape="rect" coords="440,310,850,385" href="http://hackathon20now.appspot.com/"/>
<area shape="rect" coords="440,400,850,480" href="http://www.digitalhub.org.uk/facebook-modules-documentation/destination/html/"/>
<area shape="rect" coords="440,500,850,575" href="data.jsp"/>
<area shape="rect" coords="440,590,850,670" href="http://developer.eventbrite.com/"/>
<area shape="rect" coords="440,690,850,765" href="https://developers.google.com/youtube/"/>

<area shape="rect" coords="865,220,1270,295" href="memberrewards.jsp"/>
<area shape="rect" coords="865,310,1270,385" href="coalition.jsp"/>
<area shape="rect" coords="865,400,1270,480" href=" http://www.digitalhub.org.uk/twitter-modules/documentation.xlsx"/>
<area shape="rect" coords="865,500,1270,575" href="http://developers.soundcloud.com/"/>
<area shape="rect" coords="865,590,1270,670" href="http://developers.facebook.com/"/>
<area shape="rect" coords="865,690,1270,765" href="https://developer.paypal.com/"/>
</map>
<br>You are <%= request.getUserPrincipal() %><br>
<a href="<%=UserServiceFactory.getUserService().createLogoutURL(request.getRequestURI())%>">sign out</a><br>
<a href="<%=UserServiceFactory.getUserService().createLoginURL(request.getRequestURI())%>">sign in</a><br>
</body>
</html>
<%}else{%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>No Content</title>
</head>
<body>
<br>You are <%= request.getUserPrincipal() %><br>
<a href="<%=UserServiceFactory.getUserService().createLogoutURL(request.getRequestURI())%>">sign out</a><br>
<a href="<%=UserServiceFactory.getUserService().createLoginURL(request.getRequestURI())%>">sign in</a><br>
</body>
</html>
<%}%>